<!DOCTYPE html>
<html>
<#include "../head.html">
    <body>
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="回答管理">
                    <#include "banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix" style="padding:15px 25px">
                            <table style="text-align:left;width:100%">
                                <tr style="font-size:20px;font-weight: bold;"><td>${question.title!''}</td></tr>
                                <tr><td style="text-align:left">${question.content!''}</td></br>
                                <tr><td class="clearfix">
                                    <span style="float:right;margin-top:10px;color:#777"">${(question.entryDateTime)?string("yyyy-MM-dd HH:mm:ss")}</span>
                                    <span style="float:left;margin-top:10px;color:#224ec3">${question.user.userName}</span>
                                </td>
                                </tr>
                            </table>
                            <div class="toolbor-module search">
                                <input type="button" class="input-button return" value="返回" onclick="location.href='/admin/qa/queryQuestion.html?page=${page}&title=${title}'">
                            </div>

                        </div>


                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form action="" method="post">
                                <table class="data-list">
                                    <tr class="header">
                                        <td>ID</td>
                                        <td>回答者</td>
                                        <td>回答内容</td>
                                        <td>回答时间</td>
                                        <td>操作</td>
                                    </tr>
                                    <#list replyList as item>
                                        <tr class="s">
                                            <td>${item.id!0}</td>
                                            <td>${item.user.userName!''}</td>
                                            <td>${item.content!''}</td>
                                            <td>${(item.entryDateTime)?string("yyyy-MM-dd HH:mm:ss")}</td>
                                            <td>
                                                <a class="un" href="#" onclick="javascript:if(confirm( '删除后不可还原，确定删除回答ID为【${item.id?c}】？')) href= '/admin/qa/delReply.html?id=${item.id!0}&qId=${question.id}&page=${page}&title=${title}'; else return;">删除</a>
                                            </td>
                                        </tr>
                                    </#list>
                                </table>
                            </form>

                            <!--底部工具栏--{-->
                            <div id="bottomToolbar" class="clearfix">
                                <div class="other-tool">
                                    <dl class="refresh-data">
                                        <dt class="refresh-data-icon"></dt>
                                        <dd><a href="javascript:void(0);" class="refresh-page">刷新数据</a></dd>
                                    </dl>
                                </div>
                            </div>
                            <!--底部工具栏--}-->
                        </div>
        </div>
    </div>
    <div class="mc-b"><#include "../foot.html"</div>
        <#include "../jsPage.html">
    </body>
</html>

